﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace POS
{
    public partial class DiscountPopup : DevExpress.XtraEditors.XtraForm
    {
        public static DiscountPopup _main;
        public static double Percentage;
        public DiscountPopup()
        {
            InitializeComponent();
            _main = this;
        }

        private void DiscountPopup_Load(object sender, EventArgs e)
        {

        }

        private void btn5_Click(object sender, EventArgs e)
        {
            Percentage = 0.05;
        }

        private void btn10_Click(object sender, EventArgs e)
        {
            Percentage = 0.1;
        }

        private void btn15_Click(object sender, EventArgs e)
        {
            Percentage = 0.15;
        }

        private void btn20_Click(object sender, EventArgs e)
        {
            Percentage = 0.2;
        }

        private void btn25_Click(object sender, EventArgs e)
        {
            Percentage = 0.25;
        }

        private void btn30_Click(object sender, EventArgs e)
        {
            Percentage = 0.3;
        }

        private void btn35_Click(object sender, EventArgs e)
        {
            Percentage = 0.35;
        }

        private void btn40_Click(object sender, EventArgs e)
        {
            Percentage = 0.4;
        }

        private void btn45_Click(object sender, EventArgs e)
        {
            Percentage = 0.45;
        }

        private void btn50_Click(object sender, EventArgs e)
        {
            Percentage = 0.5;
        }

        private void btn55_Click(object sender, EventArgs e)
        {
            Percentage = 0.55;
        }

        private void btn60_Click(object sender, EventArgs e)
        {
            Percentage = 0.6;
        }

        private void btn65_Click(object sender, EventArgs e)
        {
            Percentage = 0.65;
        }

        private void btn70_Click(object sender, EventArgs e)
        {
            Percentage = 0.7;
        }

        private void btn75_Click(object sender, EventArgs e)
        {
            Percentage = 0.75;
        }

        private void btn80_Click(object sender, EventArgs e)
        {
            Percentage = 0.8;
        }

        private void btn85_Click(object sender, EventArgs e)
        {
            Percentage = 0.85;
        }

        private void btn90_Click(object sender, EventArgs e)
        {
            Percentage = 0.9;
        }

        private void btn95_Click(object sender, EventArgs e)
        {
            Percentage = 0.95;
        }

        private void btn100_Click(object sender, EventArgs e)
        {
            Percentage = 1.00;
        }
    }
}